package com.hcj.testCallBack;

/**
 * @Author: HuangChangjin 2017-12-03 15:54
 * @Description:
 */
public class B {
    public void giveMessage(CallBack callBack, String question) {

        // 模拟此时很忙的情况
        for(int i = 1; i <= 10; i++){
            System.out.println("B此时在处理====》" +i );
        }

        // 忙完后，回答问题
        String result = "2";
        callBack.solve(question, result);
    }
}

